package com.cxs.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: cxs
 */
@Configuration
public class TopicConfig {

    @Bean
    public NewTopic cxsTopic() {
        return new NewTopic("cxs-topic", 2, (short) 1);
    }


    @Bean
    public NewTopic xjwTopic() {
        return new NewTopic("xjw-topic", 3, (short) 1);
    }

    @Bean
    public NewTopic myTopic() {
        return new NewTopic("my-topic", 3, (short) 1);
    }

    @Bean
    public NewTopic myTopic2() {
        return new NewTopic("my-topic2", 3, (short) 1);
    }

    @Bean
    public NewTopic myTopic3() {
        return new NewTopic("my-topic3", 3, (short) 1);
    }

    @Bean
    public NewTopic myTopic4() {
        return new NewTopic("my-topic4", 2, (short) 1);
    }

    @Bean
    public NewTopic myTopic5() {
        return new NewTopic("my-topic5", 2, (short) 1);
    }

    @Bean
    public NewTopic myTopic6() {
        return new NewTopic("my-topic6", 2, (short) 1);
    }

    @Bean
    public NewTopic myTopic7() {
        return new NewTopic("my-topic7", 2, (short) 1);
    }
}
